using System.Collections.Generic;

namespace Ant.Dto.PayDto
{
    public class GetStatisticalDto
    {

        public Title title { get; set; }
        public Legend legend {get;set;}
        public Tooltip tooltip { get; set; }
        public Grid grid { get; set; }
        public Toolbox toolbox { get; set; }
        public XAxis xAxis { get; set; }
        public YAxis yAxis { get; set; }
        public List<Series> series { get; set; }
    }
    public class Title
    {
        private string _text;
        public string Text
        {
            get { return _text; }
            set { _text = value == null ? "七日销售数据图" : value; }
        }
    }


    public class Legend
    {
        private List<string> _data;
        public List<string> Data
        {
            get { return _data; }
            set { _data = value == null ? new List<string>() : value; }
        }

    }

    public class Tooltip
    {
        private string _trigger = "axis";
        public string Trigger
        {
            get { return _trigger; }
        }
    }

    public class Grid
    {
        private string _left = "3%";
        public string Left
        {
            get { return _left; }
        }
        private string _right = "3%";
        public string Right
        {
            get { return _right; }
        }
        private string _bottom = "4%";
        public string Bottom
        {
            get { return _bottom; }
        }

        private bool _containLabel = true;
        public bool containLabel
        {
            get { return _containLabel; }
        }


    }

    public class Toolbox
    {
        public Feature feature { get; set; } = new Feature();
        public class Feature
        {

            public SaveAsImage saveAsImage { get; set; } = new SaveAsImage();
            public class SaveAsImage
            {

            }
        }
    }

    public class XAxis
    {
        public string Type { get; set;} = "category";
        public bool BoundaryGap { get; set; } = false;

        public List<string> data { get; set; } = new List<string>();
    }

    public class YAxis
    {
        public string Type { get; set; } = "value";

    }

    public class Series
    {
        public string Name { get; set; }
        public string Type { get; set; }
        public string Stack { get; set; }
        public List<decimal> Data { get; set; }
    }
}